home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / os2 / pccts.zip / TEST.C < prev    next >
C/C++ Source or Header  |  1992-12-08  |  411b  |  19 lines

  1. #include <stdio.h>
  2.  
  3. /*
  4.  * test for rexpr().
  5.  * To make this test:
  6.  *    cc -o rexpr test.c rexpr.c
  7.  * Then from command line type:
  8.  *    rexpr r string
  9.  * where r is the regular expression that decribes a language
  10.  * and string is the string to verify.
  11.  */
  12. main(argc,argv)
  13. int argc;
  14. char *argv[];
  15. {
  16.     if ( argc!=3 ) fprintf(stderr,"rexpr: expr s\n");
  17.     else printf("%d\n", rexpr(argv[1], argv[2]));
  18. }
  19.